﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UCS.XNA.Utils;

namespace Hopeless.Physical
{
    class Terrain
    {
        public void Initialize(Rectangle availableSpace)
        {
            _space = availableSpace;
            _texture = GameResources.Content.Load<Texture2D>("Background_Grass");
        }

        private Rectangle _space;
        public Rectangle Space
        {
            get { return _space; }
        }

        private Texture2D _texture;

        public void Draw(GameTime gameTime)
        {
            GameResources.SpriteBatch.Begin(SpriteSortMode.Immediate, BlendState.NonPremultiplied, SamplerState.LinearWrap, DepthStencilState.Default, RasterizerState.CullNone);

            GameResources.SpriteBatch.Draw(_texture, _space, _space, Color.White);

            GameResources.SpriteBatch.End();
        }
    }
}
